# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=hare-harfbuzz
pkgver=0_git20240715
_commit=524d77df5fe1a5e96d03fcd78adccacf529ab465
pkgrel=0
pkgdesc="Hare interface to the xkbcommon library"
url="https://git.sr.ht/~stacyharper/hare-xkb"
# Currently doesn't build on riscv64
options="!check" # no test suite
arch="x86_64 aarch64" # hare
license="MPL-2.0"
makedepends="hare hare-cairo harfbuzz-dev libbsd-dev"
source="
	$pkgname-$_commit.tar.gz::https://git.sr.ht/~sircmpwn/hare-harfbuzz/archive/$_commit.tar.gz
"
builddir="$srcdir/$pkgname-$_commit"

# Work-around of https://todo.sr.ht/~sircmpwn/hare/723#event-261138
case "$CARCH" in
	aarch64)
		export LDFLAGS="-no-pie $LDFLAGS"
		;;
esac

build() {
	make -j1 PREFIX=/usr
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
17011d3b90b4d434b351b6701ef4996a059f3fb1a97844530f13b596f93448e44bddfb7ce643032319401f0138d9b929f7bbba27140f5aa832e55a14e242d1f2  hare-harfbuzz-524d77df5fe1a5e96d03fcd78adccacf529ab465.tar.gz
"
